package com.bsoft.gol.editor.editor;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


public class FusIndexResult implements Serializable {


	private String indexResultId;
	private String indexId;
	private String indexResultContent;
	private String indexResultType;
	private String upperLimit;
	private String lowerLimit;
	private String indexDescription;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh_CN", timezone = "GMT+8")
	private Date createTime;

	public String getIndexResultId() {
		return indexResultId;
	}

	public void setIndexResultId(String indexResultId) {
		this.indexResultId = indexResultId;
	}

	public String getIndexId() {
		return indexId;
	}

	public void setIndexId(String indexId) {
		this.indexId = indexId;
	}

	public String getIndexResultContent() {
		return indexResultContent;
	}

	public void setIndexResultContent(String indexResultContent) {
		this.indexResultContent = indexResultContent;
	}

	public String getIndexResultType() {
		return indexResultType;
	}

	public void setIndexResultType(String indexResultType) {
		this.indexResultType = indexResultType;
	}

	public String getUpperLimit() {
		return upperLimit;
	}

	public void setUpperLimit(String upperLimit) {
		this.upperLimit = upperLimit;
	}

	public String getLowerLimit() {
		return lowerLimit;
	}

	public void setLowerLimit(String lowerLimit) {
		this.lowerLimit = lowerLimit;
	}

	public String getIndexDescription() {
		return indexDescription;
	}

	public void setIndexDescription(String indexDescription) {
		this.indexDescription = indexDescription;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		FusIndexResult that = (FusIndexResult) o;
		return Objects.equals(indexResultId, that.indexResultId) &&
				Objects.equals(indexId, that.indexId) &&
				Objects.equals(indexResultContent, that.indexResultContent) &&
				Objects.equals(indexResultType, that.indexResultType) &&
				Objects.equals(upperLimit, that.upperLimit) &&
				Objects.equals(lowerLimit, that.lowerLimit) &&
				Objects.equals(indexDescription, that.indexDescription) &&
				Objects.equals(createTime, that.createTime);
	}

	@Override
	public int hashCode() {
		return Objects.hash(indexResultId, indexId, indexResultContent, indexResultType, upperLimit, lowerLimit,
                indexDescription, createTime);
	}
}
